Meaning of expanded in Talk to the City
o1 Pro.iconThe "expanded" state is used to manage the display state of tooltips (hover tooltips).
In code,
Normally, tooltips are displayed by mouse hover etc., but when "expanded" is false, tooltips disappear when the cursor is moved.
If "expanded" is true, the tooltip can be made visible by the user by clicking on it, and then hidden again by clicking on it again.
and other behaviors.
In summary, "expanded" is used as a flag to indicate whether the tooltip is in a fixed expanded view rather than a temporary hover view.
---
This page is auto-translated from /nishio/Talk to the Cityのexpandedの意味 using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.